import React, { Component } from 'react'

class Footer extends Component {
    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div>
                <label><input type="radio" name="radio1" checked={this.props.filter === 'all'} onChange={this.props.handleCheck} value="all" />全部</label>
                <label><input type="radio" name="radio1" checked={this.props.filter === 'completed'} onChange={this.props.handleCheck} value="completed" />已完成</label>
                <label><input type="radio" name="radio1" checked={this.props.filter === 'uncompleted'} onChange={this.props.handleCheck} value="uncompleted" />未完成</label>
            </div>
        )
    }
}

export default Footer